<?php
require_once(dirname(__FILE__) . '/../include/config.inc.php');
require_once "function.php";

//工单提交处理
$post_time = time();
$post_time2 = date("Y-m-d H:i:s", time());
$nowtime = time();

$h = date("H", time());
$h = intval($h);
$d = date("d", time());
$d = intval($d);

$nowdate = date("Ymd", time());



$wek = date("w");

var_dump($wek);

//执行 周汇总
if($wek==0 && $h==23 ){

}

$week1 = date("Ymd", strtotime("this week"));
$week2 = date("Ymd", strtotime("this week +6 days"));

$week_date = $week1 . "-" . $week2;

echo $week_date;

/*//找到
$sql_order_5 = "SELECT *  FROM  `#@__project`  where  jindu='4'  and is_delete=0   ";
$dosql->Execute($sql_order_5, 55);
while ($row5 = $dosql->GetArray(55)) {
    $project_id = $row5['id'];
    $pmid = $row5['pmid'];
    $old_apply_device = $row5['apply_device'];

    //本周是否上传周汇报



    $fee_arr = $dosql->GetOne("select `id` from `#@__fee_log` where manageid='$pmid' and orderid='$project_id' and feetype='yanshouyuqi' and nowdate='$nowdate'  ");
    if (!$fee_arr) {
        $dosql->ExecNoneQuery("insert into `#@__fee_log`(`type`,orderid,op,op_time,jindu,manageid,remark,fee,task,feetype,nowdate) values ('project','$project_id','move','$nowtime','4','$pmid','项目验收预期，项目经理 处罚','$cfg_yanqiyanshou','$old_apply_device','yanshouyuqi','$nowdate')");
        //增加奖励计划
        $dosql->ExecNoneQuery("update  `#@__user` set fee=fee-'$cfg_yanqiyanshou' where id='$pmid' ");
    }


}*/